package com.heifei

import scala.collection.mutable.ArrayBuffer

/**
 * @author caizhengjun01@gmail.com
 * @date 2020/8/4 2:02 下午
 */
object ArrayBufferDemo {
  def main(args: Array[String]): Unit = {

    val value = new ArrayBuffer[Int]()

    value += 1
    value += 2
    value += 3

    println(value)

    value(0) = 100

    println(value)
    value.insert(1, 88)
    println(value)

    value.remove(0, 1)

    println(value)

  }
}
